﻿using System.Web;

namespace StoneAge.Controller.Storage
{
    class HttpStorage : IHttpStorage
    {
        public void Add(HttpStorageKeys key, object value)
        {
            HttpContext.Current.Items[key] = value;
        }

        public object Retrieve(HttpStorageKeys key)
        {
            return HttpContext.Current.Items[key];
        }

        public bool Contains(HttpStorageKeys key)
        {
            return HttpContext.Current.Items.Contains(key);
        }
    }
}
